package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class TopicInfoDto extends BaseDto {

    @NotNull(message = "题目Id不能为空")
    @ApiModelProperty(value = "题目Id")
    private Integer topicId;

    @NotNull(message = "题目类型不能为空")
    @ApiModelProperty(value = "题目类型")
    private Integer type;

    @ApiModelProperty(value = "题目")
    private String  branch;

    @NotNull(message = "题目答案不能为空")
    @ApiModelProperty(value = "题目答案")
    private String  answer;

    @ApiModelProperty(value = "答案解析")
    private String  analysis;

    @NotNull(message = "分值不能为空")
    @ApiModelProperty(value = "分值")
    private Integer score;

    @NotNull(message = "序号不能为空")
    @ApiModelProperty(value = "排序字段")
    private Integer orderNo;

    @Valid
    @ApiModelProperty(value = "选择题的选项")
    private List<TopicOptionDto> optionDtoList;
}
